package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value="lamp_box")
@Accessors(chain = true)
@Data
@TableName(value = "lamp_box")
public class LampBox extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 按钮名称
     */
    @TableField(value = "button_name")
    @ApiModelProperty(value="按钮名称")
    private String buttonName;

    /**
     * 颜色
     */
    @TableField(value = "color")
    @ApiModelProperty(value="颜色")
    private String color;

    /**
     * 联络灯类型id(lamp_type表id)
     */
    @TableField(value = "lamp_type_id",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="联络灯类型id(lamp_type表id)")
    private Long lampTypeId;

    /**
     * 分组ID(common_tree表id)
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value="分组ID(common_tree表id)")
    private Long groupId;

    /**
     * 创建时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="创建时间",hidden = true)
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value="创建人",hidden = true)
    private Integer updateUser;

    /**
     * 联络灯类型名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="联络灯类型名称")
    private String lampTypeName;

    /**
     * 分组名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="分组名称")
    private String groupName;

    private static final long serialVersionUID = 1L;
}